package com.xx.xxx.customer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by sa on 2017/5/30.
 */
public class Main {
    private static ClassPathXmlApplicationContext context;
    private static Logger logger = LoggerFactory.getLogger(Main.class);

    private Main(){}

    public static void main(String args[])  {
        try {
            context = new ClassPathXmlApplicationContext("classpath:applicationContext-customer.xml");
            context.start();
            Test test = (Test) context.getBean("test");
            test.test();
            System.in.read();
        } catch (Exception e) {
            logger.error(e.getMessage(),e);
        }

    }
}
